package com.ruoyi.web.controller.warning;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.service.IAlertsService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-03-25
 */
@RestController
@RequestMapping("/alerts")
@Api(tags = "告警", description = "用于处理告警相关操作的控制器")
public class AlertsController {
    @Resource
    private IAlertsService alertsService;

    @Anonymous
    @RequestMapping("/warning")
    public R warning(){
//        alertsService.warning();
        return R.ok();
    }
}
